﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Text.RegularExpressions;

public class StringUtils
{

    public static Boolean isValidGuid(String value)
    {
        if(value == null)
        {
            return false;
        }
        
        return Regex.IsMatch(value,@"^?[\da-f]{8}-([\da-f]{4}-){3}[\da-f]{12}?$", RegexOptions.IgnoreCase);

    }

}
